package com.fy.module.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author jiang
 * @since 2023-03-21
 */
@TableName("sys_user")
@ApiModel(value = "User对象", description = "用户信息表")
public class UserMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    private String departId;

    @ApiModelProperty("用户编号")
    @TableId(value = "user_id",type = IdType.ASSIGN_ID)
    private String userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("登录帐户")
    private String account;

    @ApiModelProperty("登录密码")
    private String password;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("人员类型(1:客服账号;2:管理账号;3:内置账号;4：财务账号 5：物流账号6：门户系统用户账号)")
    private String userType;

    @ApiModelProperty("启用状态")
    private String enabled;

    @ApiModelProperty("最后登录时间")
    private Date loginTime;

    @ApiModelProperty("头像")
    private String self;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("创建时间")
    private Date createTime;
    @TableField(exist = false)
    private String roleNamesAndPermNames;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("部门名称")
    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    @ApiModelProperty("所属角色")
    private String roleDesc;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }
    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
    public String getSelf() {
        return self;
    }

    public void setSelf(String self) {
        this.self = self;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRoleNamesAndPermNames() {
        return roleNamesAndPermNames;
    }

    public void setRoleNamesAndPermNames(String roleNamesAndPermNames) {
        this.roleNamesAndPermNames = roleNamesAndPermNames;
    }

    @Override
    public String toString() {
        return "UserMsg{" +
                "departId='" + departId + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", remark='" + remark + '\'' +
                ", userType='" + userType + '\'' +
                ", enabled='" + enabled + '\'' +
                ", loginTime=" + loginTime +
                ", self='" + self + '\'' +
                ", phone='" + phone + '\'' +
                ", createTime=" + createTime +
                ", roleNamesAndPermNames='" + roleNamesAndPermNames + '\'' +
                '}';
    }
}
